<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
		<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />

		<title>新增图片 - 图片管理 - H-ui.admin v3.1</title>

		<!-- 引入jquery -->
		<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
		<link rel="stylesheet" href="plugins/bootstrap/css/bootstrap.min.css">
		<!-- 引入 angular 文件 -->
		<script type="text/javascript" src="plugins/angularjs/angular.min.js"></script>
		<!-- 引入 angularJS 外部 js 文件 -->
		<!-- 公共基础 分页 模块 -->
		<script type="text/javascript" src="js/base.js"></script>
		<!-- 引入 文章 服务层 -->
		<script type="text/javascript" src="js/service/typeService.js"></script>
		<!-- 引入文章 类型 服务层 -->
		<!-- 引入公共 基础controller 控制层 -->
		<script type="text/javascript" src="js/controller/baseController.js"></script>
		<!-- 引入brandController 控制层 -->
		<script type="text/javascript" src="js/controller/typeController.js"></script>
		<!-- 缩略图 -->
		<script type="text/javascript" src="js/thumb.js"></script>
		<!-- 富文本编辑器 -->
		<link rel="stylesheet" href="layui/css/layui.css">
	</head>

	<body ng-app="tilong" ng-controller="typeController" ng-init="edit()">
		<article class="page-container">
			<form class="form form-horizontal" id="form-article-add">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">类别名称：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" ng-model="entity.name" class="input-text" value="" placeholder="" id="articletitle" name="articletitle">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">跳转路径：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" ng-model="entity.href" class="input-text" value="" placeholder="" id="author" name="author">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">用户唯一标识：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" ng-model="entity.openId" class="input-text" value="" placeholder="" id="" name="">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">缩略图：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<img src="{{entity.icon}}" id="showImg" alt="" width="60" width="60" />
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">图标：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<a ng-click="addImage()" class="btn btn-secondary radius" data-title="本地上传" href="javascript:;">
							本地上传
							<input type="file" id="imageShow" ng-model="entity.image" style="display:none;" />
						</a>
						<a class="btn btn-primary radius" data-title="提交" ng-click="uploadAndSave()" href="javascript:;">
							提交
						</a>
					</div>
				</div>
			</form>
		</article>

	</body>

</html>